package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_store")
public class Store implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺名称
     */
    @NotBlank(message = "请输入店铺名称")
    @TableField(value = "store_name")
    private String storeName;

    /**
     * 店铺负责人
     */
    @NotBlank(message = "请输入店铺负责人")
    @TableField(value = "store_manager")
    private String storeManager;

    /**
     * 店铺录入时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 店铺合同开始时间
     */
    @TableField(value = "begin_time")
    private Date beginTime;

    /**
     * 店铺合同终止时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 店铺合同数量
     */
    @TableField(value = "contract_num")
    private Integer contractNum;

    /**
     * 店铺简介
     */
    @TableField(value = "store_conment")
    private String storeConment;

    /**
     * 店铺状态
     */
    @TableField(value = "store_status")
    private Integer storeStatus;

    @TableField(value = "contarct_id")
    private Integer contarctId;

    private static final long serialVersionUID = 1L;
}